<template>
  <div>
    <!--    顶部搜索框-->.
    <div class="search_input">
      <el-input v-model="inputName" placeholder="请输入您要查询的科室" @input="search"></el-input>
    </div>
  </div>
</template>

<script>
export default {
  name: "DepartmentSearch",
  data() {
    return {
      inputName: '',
      inputDepartment: '',
    }
  },
  methods:{
    search(){
      this.$emit("inputEvent",this.inputName)
    }
  }
}
</script>

